﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.DependencyInjection.Impl;

namespace StyleMVVM.DependencyInjection
{
	public class SharedPerThreadAttribute : ILifeCycleContainerProviderAttribute
	{
		public bool IsWeak { get; set; }

		public ILifeCycleContainer ProvideContainer()
		{
			return new ThreadStaticLifeCycleContainer(IsWeak);
		}
	}
}